Skip to content

core: make vector foreach standard C compliant#544

Closed
MukundaKatta wants to merge 1 commit into
facebook:mainfrom
MukundaKatta:codex/vector-foreach-standard-c
Closed

core: make vector foreach standard C compliant#544
MukundaKatta wants to merge 1 commit into
facebook:mainfrom
MukundaKatta:codex/vector-foreach-standard-c

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • avoid GNU void-pointer arithmetic in bf_vector_foreach
  • use char-pointer arithmetic internally so the public macro compiles under standard C

Fixes #509.

Testing

  • git diff --check
  • cc -std=c17 -pedantic-errors -Werror -I src/libbpfilter/include -c /tmp/bpfilter-vector-XXXXXX.c

Note: full CMake configuration is blocked locally because libbpf is not installed.

@MukundaKatta MukundaKatta requested a review from qdeslandes as a code owner May 15, 2026 02:30
@meta-cla meta-cla Bot added the cla signed label May 15, 2026
@qdeslandes
Copy link
Copy Markdown
Contributor

cc -std=c17 -pedantic-errors -Werror -I src/libbpfilter/include -c /tmp/bpfilter-vector-XXXXXX.c

That's not how we build the project.

Note: full CMake configuration is blocked locally because libbpf is not installed.

"I made a change to prevent a build error but didn't build the project" is not an acceptable testing plan.

It's the second time you're opening a PR on this project, and it's the second time you disregard the style guide (#519). It's either a lack of human involvement or a lack of basic decency when it comes to testing the code you submit. Next time I suspect another AI-generated comment or PR from you, I'll block you.

I spent more time writing this comment than you spent opening 2 PRs on this project.

@qdeslandes qdeslandes closed this May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make bf_vector_foreach compliant with the C standard

2 participants